Got rid of ugly static methods in WikitextNodeFactory