The private method _text_node should be used as function

If the class method does not reference any of the class attributes
it may be more clear to define the method as a static function instead.

Change-Id: I273e00fc4ab6fecafcd7bdeaf3b809a6688025c5
Merge "The private method _text_node should be used as function"