Inheritance is not irrevocable. Are you denying that Cain, Ishmael, Esau and Reuben didn't lose their rights of the firstborn? Plenty of examples in the bible.
And the sons of Reuben the first-born of Israel (for he was the first-born; but because of his going up to his father’s couch, his...