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.
The functionality is the same but the warning is a bit annoying/confusing, even if the behavior is correct.