Funny you should say that…
cycle.travel does actually look out for the combination of highway=cycleway
and railway=abandoned
, and adjust its behaviour accordingly. It’s a really good indicator that the trail has a gentle grade, even in a narrow valley where the coarse SRTM grid might suggest the path is jumping up and down a little. So it doesn’t affect the weighting, but it does affect the smoothing factor applied on the elevation.