refactoring Rakefile