Refactor CheckAuthServlet