[Rakefile] Refactored.