See previous comment about `maintainShadowSelection` and Root leakage.