Slight refactor of ControllerMethodInvoker.