Templatization of FieldValueFactory