The upkeep of a railway to ensure it remains safe and navigable, for example the maintenance of a railroad's tracks and bridges. Maintenance of way expenditures are capitalized rather than expensed.