refactoring Application Monitor Factory