Factored out "chooseSettings".