Refactoring of servlets