Refactoring: helper functions for analytical level XML moved out to AUtils.pm