Removing unnecessary routes and controller actions