Use destination as reference for type to migrate to get correct order.
Merge pull request #1001 from xschildw/PLFM-2510

Use destination as reference for type to migrate to get correct order.