RAZ-2248: Metaform plugin: Re-factored saving of custom fields