Move config loading to the app.