cloud refactoring