Automated backups, cloud storage and services, encrypted local storage, remote wipe if feasible, devices that are midrange but still getting security and feature updates. Not quite seamless to move to a new device, but it's not that hard either.
One important thing to remember, at least for me, is I just had significantly less disposable income back then. Replacing the MBP would have been financially impossible for me, so I took more care of it. I'm in a much more privileged place now... so replacing something like this would only be a significant inconvenience.
RIP 2015 MBP - you still had a few years left in ya.
Edit: Screenshot I submitted to Apple.
I'm on battery number 2 at this point, and the swap takes as long as a dozen phillips heads takes to unscrew then screw. I don't envy the more recent glued battery models and don't look forward to the day when this pretty repairable rig finally bites the dust and I'm forced into one.