Code generalization to be usable from the ActiveSync bundle