Run hooks on the controller before route hooks.