'Remove any attribute named for a field with scope Scope.settings from the supplied
xml_object'

@classmethod
def clean_metadata_from_xml(cls, xml_object):

    for (field_name, field) in cls.fields.items():
        if ((field.scope == Scope.settings) and (xml_object.get(field_name) is not None)):
            del xml_object.attrib[field_name]
