Refactors the structure of the config.yaml.