refactor nxt.ClassRenderer