@staticmethod
def from_view_type(view_type):
    if issubclass(view_type, model.base.FormatBase):
        if issubclass(view_type, model.SingleFileDirectoryFormatBase):
            return SingleFileDirectoryFormatType(view_type)
        return FormatType(view_type)
    else:
        return ObjectType(view_type)
@staticmethod
def from_view_type(view_type):
    if issubclass(view_type, model.base.FormatBase):
        if issubclass(view_type, model.SingleFileDirectoryFormatBase):
            return SingleFileDirectoryFormatType(view_type)
        return FormatType(view_type)
    else:
        return ObjectType(view_type)