It is a `map` followed by a `flatten`, so it should be a `flatMap`.