Reduce redundancy in static_pages spec.
Add guard for specs.