cleanup get_populated_planet_ids