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.
Closing as this is no longer relevant.
Apologies, it seems this still collects a handful of useful bugs.