Refactoring: moved class Registry into namespace 'global'.