Simplify code in ControllerTwoFaListener