The protocol compiler has the support necessary to do this now, but we'll need a snapshot before we can implement this.