refactor static_pages_spec