This change distinguishes and filters by pod/container and service/endpoint in the respective sub-SDs.
This extract discovery of services and their endpoints into its own type.