Make reverse routes always use the first matching route

Fixes #3050. The previous way of removing the extra routes would prioritize the last matching route as opposed to the first one. Now it should work the same as in 2.2, but without the warning.
Or another way of looking at it, we've replaced one very minor reverse routes priority bug with another very minor reverse routes priority bug.