This will need a lot more tests, for all kinds of scenarios, including for example that routes with different methods are not removed, etc.