@classmethod
def DeregisterOutput(cls, output_class):
    """Deregisters an output class.

    The output classes are identified based on their NAME attribute.

    Args:
      output_class (type): output module class.

    Raises:
      KeyError: if output class is not set for the corresponding data type.
    """
    output_class_name = output_class.NAME.lower()
    if output_class_name in cls._disabled_output_classes:
        class_dict = cls._disabled_output_classes
    else:
        class_dict = cls._output_classes
    if output_class_name not in class_dict:
        raise KeyError('Output class not set for name: {0:s}.'.format(
            output_class.NAME))
    del class_dict[output_class_name]
