Removing duplication from routes.rb