DRY out page title code