Refactoring the Representer class.