Could just unpack in one go at the top?
```scala
val (prevOpResults, (prevMappings, prevProblems)) = allCompletedResults
```