Extract method for page titles