Voldemort's cruel treatment of Hagrid was a brilliant strategy.