Modular Termination for Second-Order Computation Rules and Application to Algebraic Effect Handlers (Logical Methods in Computer Science, 2022)