Fixes #5628: Handle deprecation information from metadata