Concise code for selecting infrastructure