Adding a deprecated class to decorate both functions and classes