chistedit: move renderrules() onto state class
Differential Revision: https://phab.mercurial-scm.org/D11639