Extract Path, line and parsing functions into modules.