DocType returns MessageFactories, Transforms rather than applies them
directly.