Add new helper function - parser_create_terms_hierarchy()