Move "choose folder" logic into helper.