DRY map selector logic