what is a mary carter agreement