I'm confused about this block and the one below. Why doesn't this block create _loc_singleton if is is None and then set it on the split modulestore (always). Wouldn't that mean you could remove the code at lines 98 and 99? I don't understand why there are 2 different places where the split modulestore gets injected with the loc_mapper.

Somewhat related question, what code calls the loc_mapper function?