Something like this would be a goods use for struct multiple alias this, except that we haven't implemented that yet unfortunately.
What's the deal with that? It seems someone made progress on this issue 2 years ago and then vanished. It's a fairly significant feature that's never been implemented!