migrate tool to compute the matrix parts of the trackupstream job