split out paths extractions transformation into unit testable ns