Attempt to remove left recursion from the grammar.