DRY-up the language lookup