Add a Deprecation decorator to easily deprecate classes and functions.