Restore a logic to cut unnecessary roots.