POC: deprecation with strict removal version
xref #28415 

Decorator that just registers the deprecation in a dict that we can check and test-time.
Thinking out loud but is it possible to move some of this to `scripts`? Putting a code-maintenance task in the code base itself seems a little strange to me so `scripts` might be a better home > Putting a code-maintenance task in the code base itself seems a little strange to me so scripts might be a better home

Agreed on the principle, no idea about the implementation.  Maybe code_checks?