Move declaration list checking to the grammar checks.