IKE logic moved to its own class