Some applications simply cannot run in a cloud environment, or don’t have the ability of using the functionalities provided by the cloud. Refactoring in cloud migration refers to the process of rewriting or partially modifying applications that are not designed to run in a cloud environment.