Replace is_shared calls with is_language_independent