Refactoring shared config.