RelationshipWidget class refactoring done.