Migrate to class_attribute.