paas refactoring