I moved the paypal integration upgrade and validation into the non-core epic a few weeks ago: https://github.com/openfoodfoundation/openfoodnetwork/issues/2225
Is the restart_checkout only used for paypal integration? If that is the case I’d move this into spree upgrade phase 2.
anyway, I think it’s definitely worth trying to remove this customization!