Refactoring title helper