Patrick McKenzie
An extension of this idea which I somewhat frequently use, though not materially on this example site, is building out either precomputation or subtools for things that are inefficient or inconsistent to do just with inference. Often some "paving of the cow paths" for that.