refactor to pull some code blocks into separate helper methods
refactor to pull some code blocks into separate helper methods

plantigrade/geni-tools,tcmitchell/geni-tools,plantigrade/geni-tools,ahelsing/geni-tools,tcmitchell/geni-tools,ahelsing/geni-tools