Rename extract -> extractChunk.

Also, remove unused `duplicate` for `Chunk`.