Refactored modify_membership to take advantage of ContactService.