Pull schema-level checks out of scan loop.