The ScriptFactory interface is poorly named, since as of #50344 it is no long a common base for all script factories.
We should rename it to something more appropriate to it's use, which is indicating determinism (and therefore result cacheability) of scripts.
Related: #49466