Remove unnecesary code in Controller.