def _unplug(widget, container):
    if isinstance(widget, QDockContainer):
        return _unplug_container(widget, container)
    if isinstance(widget, QDockTabWidget):
        return _unplug_tab_widget(widget, container)
    if isinstance(widget, QDockSplitter):
        return _unplug_splitter(widget, container)
    raise TypeError("unhandled layout widget '%s'" % type(widget).__name__)
To be called in create_router() BEFORE router is created in DB.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/docking/layout_handling.py/_unplug--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/db/l3/ha_db.py/HA_db_mixin._ensure_create_ha_compliant