By being cognizant of these effects, you can probably accomplish both at once. Improve your community with an eye towards projects that empower the residents -- even if they were to move away. Things like financial education/mentoring or around-the-house handyman type skills sharing.