modernize Tool4: remove workarounds for ShadowDOM distribution and element registration timing