Yui's feed

Can someone familiar with royal politics help me understand how Rachel can become the head of a traitor family and save the house? From my understanding, traitor houses are razed to the ground-no exceptions. How can she get reinstated as an heir and then save a traitorous family from being wiped out?