removes redundant, unused routes from sub-routers