Refactoring integration.rake