Add factorizing support for converting duplicate add to copy operations