refactors static use of Text_Highlighter::factory due to PHP compat issues