Refactoring: Pulling out a helper method for the title