Replace a template with a FunctionRef, reducing Blender's binary size by 63 KB, with a negligible performance impact.