If there are 50 entries from two types, then in the migrate we will see 50 types but actually there only two types. The distinct will remove the duplicated types.