Replace Sink.foldLeft with Transform.foldLeft, similarly to the other many-to-one transforms (collect, concat etc)