def move_speakers_to_own_model(apps, schema_editor):
    """
    Create a list of speaker for every item that exists. Move the speakers over to
    the new list of speakers.
    """
    Item = apps.get_model('agenda', 'Item')
    Speaker = apps.get_model('agenda', 'Speaker')
    ListOfSpeakers = apps.get_model('agenda', 'ListOfSpeakers')
    for item in Item.objects.all():
        los = ListOfSpeakers(content_type=item.content_type, object_id=item
            .object_id, closed=item.speaker_list_closed)
        los.save(skip_autoupdate=True)
    for speaker in Speaker.objects.all():
        speaker.list_of_speakers = ListOfSpeakers.objects.get(object_id=
            speaker.item.object_id, content_type=speaker.item.content_type)
        speaker.save(skip_autoupdate=True)
