Modularize Rakefile