Refactor AdminServlet.