Refactoring Config API.