Replacement of hydraulic valves