refactor(interimElement): simplify onComplete