Refactor static_pages spec