After some thinking, I realise it is even simpler. You can compute it easily from pace and cadence.
If you use metric units for pace (min/km), simply start with 1000 [m/km], then divide by current pace [min/km], and then divide by current cadence [steps…