Make MetadataManager 100% typed.