REF/CLN: ops boilerplate #23853
-  closes #23853
-  passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Implement a wrapper class other than a single decorator. It is tidier to add more conditions for ops later.
