@classmethod
def copy_valid_options(cls, other_options):
    """
        Produce a new options featuring only the valid settings from
        *other_options*.
        """
    option_dict = {}
    for key in cls.valid_option_names():
        value = getattr(other_options, key, None)
        if value is not None:
            option_dict[key] = value
    return cls(**option_dict)
