Refactored static pages spec to de-duplicate code