Minor cleanup in Endpoint.scala