That’s actually exactly what they did and the reason that the new pixels (starting at 6) get 5 years of support.
It’s not much but it’s a start.
The whole effort is called project treble and has been underway for a loooong time. But it’s really hard because it affects every single Android vendor.