Removed the unused code in BaseController.