Given: paritytech/substrate#11415 WeightToFee, and LengthToFee will no longer be available. It is a breaking change that is moving users to leverage the rpc methods for calculating fee's. The obstacle here being we must make sure that we maintain historical integrity for fee calculation.
Potential solution A: This will require porting over all partial fee logic to it's own historical module, that will deal with runtime less than X. Then use the latest rpc methods for calculating all fees for runtime's greater than or equal to X.
Potential solution B: Use the rpc...queryInfo to calculate partialFee for all runtime past and present. (Not sure on the full capabilities of this, but research will be necessary).