Factor out issuer/protocol extraction.