I thought about combining them; it might be possible. There is another difference, namely that the certificate parsing needs to support multiple certificates, and the private key parsing should pick the first private key, or even raise an error if there are more than one.