The twist was foreshadowed by Kate’s struggles.