Look for schema in before_dispatch instead of route