Refactors get_name_lines and get_description_lines to use common helper