Enable Mixed Modulestore STUD-1540
Refactor get_parent_locations STUD-1663