uses extract for terminal_symbol_reducer.Fixes #60