You can’t. Every attempt at privatizing rail is a failure with worse performance, higher prices, and an inevitable level of special treatment by the state due to the monopolistic utility-like nature of rail infrastructure. Not everything needs to or should be privatized.