Refactor NetVis.history constructor into a method