@bholley
Split out is_element and is_text_node into a helper trait.
e6bbff1