This can be moved before mapping, but after filtering. If you do that, then we don't need the same call inside the mapping block. This removes the potential for two calls to the same function in an unnecessary circumstance.