factor TasmoViewMaterializer apart to make it more testable