Refactured 'BaseRegistry::getInstance()' a little