Yes! I was also thinking: "So they knew that this innocent, intelligent, powerful, benign sorcerer was locked up inside that terrible hat, and only decided to free him once they needed his help? Forget banishing Maleficent's baby, this is way worse!"