Refactor: Separate component registry and appconfig from each other