Extracted reading of bnf file to a separate class