Severus Snape hears a conversation that allows him to set his priorities straight
Professor Dumbledore wants everyone to participate in a Muggle Christmas tradition: Secret Santa. And that includes a certain Potion Master.
Which was the real reason Severus Snape changed sides?