Refactor unpack_chunked() and subordinates, for clarity.