I have spent two decades building and leading engineering teams. Here's what I learned, so you can apply it to your own migration.