docs: def create_form_groupings(self,
                                vocabularies,
                                solr_response,
                                element_group_dict,
                                sort_order):
          """Create a group object from groupings of element objects."""
          element_list = []
          # Loop through the group dictionary.
          for group_name, group_list in element_group_dict.items():
              # Create the element group.
              element_group = UNTL_GROUP_DISPATCH[group_name](
                  vocabularies=vocabularies,
                  solr_response=solr_response,
                  group_name=group_name,
                  group_list=group_list,
              )
              # Loop through the adjustable forms of the group if they exist.
              if element_group.adjustable_form is not None:
                  for adj_name, form_dict in element_group.adjustable_form.items():
                      # If an item has an adjustable form,
                      # append it to the adjustable list.
                      if form_dict['value_py'] is not None:
                          self.adjustable_items.append(adj_name)
              # Append the group to the element group list.
              element_list.append(element_group)
          # Sort the elements by the index of sort_order pre-ordered list.
          element_list.sort(key=lambda obj: sort_order.index(obj.group_name))
          return element_list