Can I deduct the cost of house re-wiring and re-piping on a rental property as an expense in the year incurred?

The re-piping and re-wiring were done on two separate rental properties that have been continuously rented for for than twenty years.