When you remove shares of stock, there should always be an offsetting account. If you give the stock to grandchildren, you should be able to select remove shares, select account (gifts to grandchild), then you have an offsetting account for the market value of the stock removed. The transaction would be Gift to grandchild $100, Stock in abc $(33), nontaxable gain on sale of stock $(67).
Or Roth Conversion, market value of stock to Roth $100, cost of IRA (75), realized gain on transfer to Roth (25), and somehow, recognition of deferred taxable income $100.