deDerp and remove more unneeded paths