Sightly refactor language handling.