There have been a number of issues relating to shadow DOM that negatively affect quality (crashes, accessibility, etc.) dominicc, hayato, morrita are undertaking a clean-up effort. We are using this metabug to track bugs and test improvements.
The "factoring" pieces went to Bug 97279.