Move variable statement checks to the grammar checker.