Move _replacingHiddenFields flag to the record