However, in the US and UK, even companies as good as IBM are rapidly ending the very well-defined system of calculating pensions based on earnings and years of service that was in place in paternalistic companies. 这句话定语从句的that是修饰years of service还是system of calculating pensions啊,为什么?求指教!