Converting the Limit Sell leg of a Bracket to a Trailing Stop Order

Brackets orders are effective to execute Stop Loss and Limit (Stop gain) orders. But, sometimes my Limit orders will execute and prevent further gains, in the case the stock price continues to have significant increase.

How do you think should be the best way to have an Stop Trailing order placed when the Limit price on a bracket order is reached, or about to be reached?

I thought of just monitoring the price for the asset with a Bracket order in place, and cancelling the bracket order Limit leg to algorithmically trigger a Stop Trailing order. But, I wonder if there is a most efficient way using something like, for example, OTO order?