Refactoring for languages list