Remove global var from `solutionIndices`.