Remove unneccessary routes.