Refactoring for config ownership.