There are some particular set of rules, often referred as 5 Rs of application modernization. It includes the key tasks of re-host, refactor, re-architect, rebuild and replace app components comprehensively.