Rename Transform.flatten to flattenPipe to avoid confusion with the other, unrelated Transform.flatten