Refactor static_pages_spec