Refactor for level info loading from xml files