def add_catalog_discover_hack(service_type, old, new):
 _discover._VERSION_HACKS.add_discover_hack(service_type, old, new)

def add_catalog_discover_hack ( service_type , old , new ) : _discover . _VERSION_HACKS . add_discover_hack ( service_type , old , new )
add a version removal rule for a particular service .