Remove duplicate routes

Pop always pops the last element, and doesn't accept a parameter. You also don't need to compare to all other members, as the array is sorted at this point.