cheap splitting of stream parsing into a method.