Drop some unused vars in `RestService`

Drop some unused vars in `RestService`