deprecated_class for contexts, for correct handling of class methods