Decompose certificate extraction into multiple methods