Refactor binary multipart assembler.