Refactoring config to support package-level configuration.