discriminate_class_for_record usage