Consolidate redundant Pair classes into a single one, in core.
Use interfaces rather than implementations in identity_provisioning.