Extract logic which sweeps for fields from the editTemplateFields function allowing the function to be used for HTTP notifications also
remove unnecessary static parameters