This logic can just be in the `derive_class_name` as a condition, so that the `class_name` can just call it.