Collate COPY commands by target to waste fewer layers