DRYing up the rake tasks.