Not quite cleaning up the sadly single-use transform streams
correctly, but it's almost there.