Move component registry to config package and protect it