Prefer passing context to map instead of extra var