Refactor operation toggler