flatten

Convenience function to apply flatten inside a Flow.