There's an even bigger bonus that in ten years the battery pack will probably be cheaper and have a better range. So while the replacement may be expensive the car will be dramatically better afterwards.
And you can recycle (sell) the battery pack after you replace it. What do you think is going into Tesla's Power Wall? Why do you think they're pushing leases so aggressively?