Remove redundant code from Rakefile