I just didn't want to leak the function/map into global, figured this was safest.