Move GenLanguageMap to utils.