@classmethod
def _remove_xml_namespaces(cls, element):
    """Prunes namespaces from XML element

        :param element: element to be trimmed
        :returns: element with namespaces trimmed
        :rtype: :class:`xml.etree.ElementTree.Element`
        """
    for key, value in vars(cls._namespaces).items():
        if key.startswith('__'):
            continue
        element = cls._remove_xml_etree_namespace(element, value)
    return element
