Abstract the endpoints.