A new life for historic railway lines