How does PartMgr decide whether underlying media is USBSTOR, hence uses DIID and not disk signature

How does PartMgr decide whether underlying media is USBSTOR, hence to report the DIID (Device Instance ID) of the USBSTOR disk and not MBR signature+Partitionoffset to volmgr. Is this solely built into partmgr or does it just let lower drivers like USBSTOR interfere. Or does volmgr make this decision instead?