Refactor all sample loading servlets