Make the unit_count migration generic.