Removing unnecessary actions from routes