@staticmethod
def strip_extracts(xml):
    """APPROs should not be alone in an EXTRACT"""
    for appro in xml.xpath('.//APPRO'):
        parent = appro.getparent()
        inside_extract = parent.tag == 'EXTRACT'
        no_prev = appro.getprevious() is None
        no_next = appro.getnext() is None
        if inside_extract and no_prev and no_next:
            grandparent = parent.getparent()
            idx = grandparent.index(parent)
            grandparent.remove(parent)
            grandparent.insert(idx, appro)
