Use csv parser rather than Regular Expressions for
simple data files
Ignore old options
Move helper function to top level