Remove unnecessary routes.