You've unwrapped getPartitionForProcedure here.  It has only one remaining call-site that I can see.  I'm not making a judgement on whether the operation is worth abstracting into a static method, but either kill both sites or leave the getPartitionForProcedure call here and only unpack the individual things you care about for the error when there's an actual error?