Move methods in rakefile to files under tasks