Move `set_language` method to common package.