I see no reason for not doing that. That's a way of resolving an actual conflict of interest. What you're describing is a blind trust, where the office-holder gives their assets to a trustee, and the trustee is directed to liquidate them as soon as reasonable—that is, as soon as the trustee can find a buyer for them—and to reinvest them in instruments the office-holder does not know the identity of.
Of course, it can take some time for the trustee to do that, so during the period before the trustee has managed to sell a particular asset, the office-holder, especially if it's a prime minister or another senior office-holder, should recuse themselves or be screened from any involvement with that asset. Once it's sold, then it's no longer an interest of theirs and there's no reason for them to be recused from matters dealing with that asset.
