Adapt to new partsregistry API