Refactoring applicationContext.xml