Move ambient statement checks to the grammar checker.