One answer would be to add to future bond covenants contractual provisions that would trigger the necessary restructuring automatically. The concept is taken from the debate over bank reform, where there is an analogous problem of bailouts and bail-ins.