Remove unnecessary actions from controller and related views.