Rename flatMap that also takes a List[E] so to make type inference work better