Add macro for using legacy classes manually