Refactoring Application Instance