We should probably follow or at least take inspiration from https://github.com/paritytech/substrate/pull/10748