Historically there was a case that a shadow root is removed though an element is not removed. However it seems we don't have such a code now. This means we can remove such assumption from code.