DRY up methods of dataAPI and populateSelectMenus