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

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