Migrated InjectionDefinitionRegistry to InstanceRegistry which is a much more general concept.