Move config-file code to SDK