Factored out common code to UnitOfLanguage trait with template