message: Move common code out of `switch` block
diff: @@ -29,24 +29,19 @@ void MapViewState::pullRobotFromFactory(ProductType pt, Factory& factory)
  case ProductType::PRODUCT_DIGGER:
  robot = &mRobotPool.addRobot(Robot::Type::Digger);
  robot->taskComplete().connect(this, &MapViewState::onDiggerTaskComplete);
  - factory.pullProduct();
  break;
  -
  case ProductType::PRODUCT_DOZER:
  robot = &mRobotPool.addRobot(Robot::Type::Dozer);
  robot->taskComplete().connect(this, &MapViewState::onDozerTaskComplete);
  - factory.pullProduct();
  break;
  -
  case ProductType::PRODUCT_MINER:
  robot = &mRobotPool.addRobot(Robot::Type::Miner);
  robot->taskComplete().connect(this, &MapViewState::onMinerTaskComplete);
  - factory.pullProduct();
  break;
  -
  default:
  throw std::runtime_error("pullRobotFromFactory():: unsuitable robot type.");
  }
  + factory.pullProduct();
  populateRobotMenu();
  