fixup! templates: split off the TFSimpleFunction into a separate module