[deprecation] simplify class_deprecated code
I don't know why it has been choosen to move to a metaclass but it actually brings more problems and a more complex code that it brings benefits.
I don't know why it has been choosen to move to a metaclass but it actually brings more problems and a more complex code that it brings benefits.