Refactored PatientServlet.java to near 50% less loc.