Issue #3489430: Create a KeyPair class, remove the old module file, update the Plugins to use the new service.
Closes #3489430