def METHOD_NAME(cls, entrypoint_class):
    """Undo a subclass's registration.
    Only used in tests.
    """
    cls.ENTRY_POINTS.remove(entrypoint_class)
    del cls.BY_INTERNAL_NAME[entrypoint_class.INTERNAL_NAME]
    del cls.DISPLAY_TITLES[entrypoint_class]
    if entrypoint_class in cls.DEFAULT_ENABLED:
        cls.DEFAULT_ENABLED.remove(entrypoint_class)