Refactoring: rake task