Code deduplication using inheritance for GroupDetail