I confirm the dirty-pragma works without injects. Of course the var-template is not a cheap method; in the template variables are declared that the newFunc proc never uses. It is a trade-off: ease of refactoring/coding versus cheap use of resources and depends on the situation and platform if it is usefull.
The resource-cheap solution is of course the normal way without template to move the variables to the new function, if not commonly used.
