Move multipart data generator into its own module.