[Migration] remove / rewrite get_latest_episode_ids