Refactoring multipart streaming.