Update route_finder.rb

Remove duplicate code