Moved common base class and util code to i18n-utils