Cleanup the config.