Composition and generalization of context data for privacy preservation