Remove dependency on JViewHtmlLegacy