Depending on the state of the existing ecommerce platform, either refactoring or replatforming may be the better choice to meet business goals. There are five possible ways of migrating: rehost, refactor, replatform, rebuild and replace. Here, we're going to focus on refactoring and replatforming.