Refactor the StaticPages spec