Configuration refactoring into factory class ServletClosureConfig