Use RegistryRef.