Refactoring Ensembles as a producer-consumer assembly line.