Some code uses the unhardened number, and some code uses the hardened number. In this case, someone else's code gives me the hardened number. I need the unhardened number - I.e. the index as per Slip0044 of the coin.
I can convert from unhardened to hardened, but my question was how to convert the other way around.