Clean up. Refactoring to add a base class to: - reduce duplication in the getFactoryClassName() method - reduce duplication in the toString()method where present - provide each type of Ref with a consistent toString() implementation