Replaced hardcoded TextExporter with type(self).