class VehicleService {

    public void removeVehicle(long vehicleId) {
        Vehicle vehicle = vehicleRepository.removeVehicle(vehicleId);
        optimizer.removeVehicle(vehicle);
    }

    @Autowired public  VehicleService(RouteOptimizer optimizer, VehicleRepository vehicleRepository);

}