Make Controller#invoke work again after refactoring.