Adding factories to textual nodes