Messages inside checkout form

I'm working on a Commerce webshop with a custom theme that handles messages itself, but the checkout form gets in my way by printing messages directly into the form. I currently solved the problem by uncommenting the appropriate lines in commerce_checkout.pages.inc. Is there a cleaner way to stop commerce_checkout handling messages itself?

Posted: Dec 21, 2011