Fixes #5628: Handle deprecation information from metadata

deprecation format:

\<DEPRECATED>message\</DEPRECATED>