or get sir whatsit join the other realm, get appointed and flip back... same thing without h/p loss (not entirely certain h/p loss is still there for certain positions...)
or religion thingy..
Which honestly is almost as bad as a noble flipping the region as the Lord then heading back to his old region. Allegiance shouldn't be treated as like that. Its a kin to changing your citizenship, buying some land then wanting to change back to your old nation.