As discussed in #807, the common code in `CVRP::solve` and `VRPTW::solve` functions can be extracted to a separate template function.