Refactor #subclasses and add JRuby comments.