Transforming a string into a DOM is a very simple operation, why does it have to be part of the transform function?