(1) A person who has received a testamentary gift subject to a charge is bound to perform the duty which he has assumed only to the extent of the value of the testamentary gift.
(2) Where the value of a testamentary gift is reduced by reason of a qualified acceptance of the inheritance or a separation of property, the testamentary donee shall, in proportion to such reduction, be relieved of the duty which he has assumed.