Resolves ENG-2372
Follow up: https://phab.comm.dev/D5728?id=18851#inline-38316
I could directly use | std::mem::take but my version also maintains initial capacity to avoid reallocatig. I consider this reasonable, as our current chunks will always be between 5-8 MiB (see https://phab.comm.dev/D5703?id=18815#inline-38279)
However, I can just use std::mem::take if requested.