Remove the parser class, use a function instead