Simplify lambda in mapcar in mongo