Refactor static page views and related tests