The only place that L381 - 383 potentially duplicates is the declaration of the stream variables themselves (in L352 - 354), which cannot be abstracted into a private method. IMO it's clearer to show the full composition of streams rather than abstracting away a layer or two.