Move transforms to a pattern.
Move root document scan to registry.