Refactor users web service.