for taxable account, should avoid realizing capital gain and div
for non-taxable account, you can realize capital gain you try to avoid in taxable account. or you can hedge in non-taxable account against the gain in taxable account. at least that is how I do it, no ideal solution I guess.