Refactor static_pages_spec.rb to a shorter version using spec/support/utilities.rb.