Refactoring: remove duplicated code for list with separator rules.