Moved logic for writing InstructionGraph to InstructionGraphWriter.