reduce complexity of mapping helper
restructure 'extract_from_element_list' in order to reduce complexity
remove newline