Refactor languages