Refactor the static pages spec