mimor cosmetic modifications in ThFacrory class.