Merge renderOrderedList and renderUnorderedList
Split out the helper functions in Visitor into a new superclass