Refactors routes.rb