Flatten diffs for PDTS