This if clause is meaningless, because `model_class.base_class != model_class` is always evaluated to false.