Format the sync list so that it is keyed by ID.

def _format_sync_list(self, records):
        """
        Format the sync list so that it is keyed by ID.
        """
        results = {}

        for attributes in records:
            if not isinstance(attributes, dict):
                id, attributes = attributes, {}
            else:
                id = list(attributes.keys())[0]
                attributes = attributes[id]

            results[id] = attributes

        return results