Implement the split & reassemble logic from buttbot.