Refactor ComboServlet to eliminate code duplication