have an AI only decision, IF married to a heir or land holder AND you have an adult sibling who does not have removed_from_line trait then take decision, get removed_from_line trait that disinherits?
another decision, has trait removed_from_line, has no siblings OR is not married to landed or heir character, take decision removes trait
?
another decision, has trait removed_from_line, has no siblings OR is not married to landed or heir character, take decision removes trait
?