Clean up base_ids from unit types before sending them to units.