These data structures are dependent on EntityRef and EntityMap, so it makes sense to keep them in the same module.