Move private cost methods from Railway and Roadway NetworkCost classes out of them, into new classes.