Years ago I had a MacBook Pro that kept having screen glitches. I was pretty sure it was something in the discreet graphics card or between the card and the screen because it didn't happen all the time.
Apple tried twice to fix it, but the same problem kept coming back. Replaced the screen, then the card. The third time I brought it back to the store, the genius looked at my repair history, took my two-year old laptop, walked to the back of the store, and brought out a brand new MacBook Pro in the box, wrapped. He apologized for the inconvenience and let me know that my AppleCare subscription restarted from day one with this new laptop, so it was covered for the next three years. (Happy to say I never had to use it with the new one.)
That's customer service, but it's also realizing after a while, it may be cheaper in the long run to throw it away and start fresh.