Refactoring appbase registry.