refactor removeUser method