The three phases of a successful cloud migration