Deduplicate code between CoreSWHID, QualifiedSWHID, and ExtendedSWHID
by making them all derive from an abstract class.