first attempt at removing non-generating symbols from CFG.