refactored get_full_title helper