Move generation exceptions to their own package.