Discrepancy detection cleanup.