The previous code for this accidentally picked up a "p" when computing the partition number. This logic should be more robust
Move it from being a profile