I have a geometry which has pretty steep steps.

I need to extract a midsurface as shown below (the dashed black line indicates the location of midsurface)

The best I could manage is shown below:

I was not able to get rid of the surf line going vertical in the last step. I am attaching a stp file of the CAD model. Would appreciate if any help. If you are able to extract the midsurface, can you please list out the steps followed in detail?
Thx...
Unable to find an attachment - read this blog