DRY up static page code