CDK-313. Deprecate MetadataProvider usages.