def METHOD_NAME(doc):
    """
    Move 'max_num_favorites' from the 'corparch' plug-in
    to the 'user_items' plug-in.
    """
    srch = doc.find('plugins/corparch/max_num_favorites')
    if srch is not None:
        srch.getparent().remove(srch)
    srch2 = doc.find('plugins/user_items')
    if srch2 is not None:
        new_elm = etree.SubElement(srch2, 'max_num_favorites')
        new_elm.attrib['extension-by'] = 'default'
        new_elm.tail = '\n        '