Fixed migration term creation - case insensitive to eliminate duplicates