Message contract transformation utility