Move config to file