Refactoring to ByteChunk