streams: refactor LazyTransform to internal/