Refactor application page title code into a helper function.