code: func legacyEndpointsFromService(svc *v1.Service, compatibility string) []*endpoint.Endpoint {
  	switch compatibility {
  	case "mate":
  		return legacyEndpointsFromMateService(svc)
  	case "molecule":
  		return legacyEndpointsFromMoleculeService(svc)
  	}
  
  	return []*endpoint.Endpoint{}
  }
docs: // legacyEndpointsFromService tries to retrieve Endpoints from Services
  // annotated with legacy annotations.