Minor code refactoring

Method `SequiturGrammar#restore_unicity` refactoring