Further split MagicInjectionPass
Add comments to Registry and RegistryInterface