Applies existing function and removed previously used ones.

Refs #7762
Removed no longer relevant todo.

Refs #7762
Merge remote-tracking branch 'origin/feature/7762_refactor_loadgroupxmlfile'