Hm. I’m also having trouble understanding why line 3 would remove significant amounts of duplicate data. IMHO line 3 doesn’t remove any duplicate data since it deals with the front repo which should never have any duplicate objects to begin with (based on these four lines at least).
The back repo on the other hand should have lots of duplicate objects but these are never pruned, at least not by these four lines. What am I missing?