Defenses to breach-of-contract claims