Function mergeHUDElementReferences