SC#QCADOOMES-1619 refactor advanced genealogy for orders