Ensure correct offsets of upgradeTo/downgradeTo definitions