Refactoring LR1 items