Remove some code duplication in TextMod sub-classes