$\DeclareMathOperator\Aut{Aut}\DeclareMathOperator\Ext{Ext}$Let $A$ by $G$ be two non-abelian group. A factor pair of $G$ with coefficients in $A$ is a pair $(\alpha,\varepsilon)$, where $\alpha:G\rightarrow\Aut(A)$ and $\varepsilon:G\times G\rightarrow A$ are maps satisfying the following properties: \begin{eqnarray} \alpha(1)&=&\mathrm{id}_{A},\\ \label{normlized} \varepsilon(h,1)&=&\varepsilon(1,h)=1, \\ \label{map} \alpha(h)\circ\alpha(g)&=&\varepsilon(h,g)\alpha(hg)\varepsilon(h,g)^{-1},\\ \label{Cocycle} \varepsilon(h,g)\varepsilon (hg,k)&=&\alpha (h)(\varepsilon (g,k))\varepsilon (h,gk) \end{eqnarray} for all $g, h, k\in G$. The set of factor pairs of $G$ with coefficients in $A$ is denoted by $\mathcal{Z}^{2}(G,A)$. Let $(\alpha,\varepsilon)$, $(\beta,\varepsilon')\in \mathcal{Z}^{2}(G,A)$, we write $(\alpha,\varepsilon)\sim(\beta,\varepsilon')$ and say that $(\alpha,\varepsilon)$ and $(\beta,\varepsilon')$ are cohomologous if there is a map $t:G\to A$ such that $$\beta(g)=t(g)\alpha(g)t(g)^{-1} \text{ and } \varepsilon'(g,h)=t(g)\alpha(g)(t(h))\varepsilon(g,h)t(gh)^{-1}$$
for all $g$, $h\in G$. The set of cohomology classes of factor pairs of $G$ with coefficients in $A$ is denoted by $\mathcal{H}^{2}(G,A)$.
Now, two extensions $E$ and $E'$ of $A$ by $G$ are said to be equivalent if and only there is a homomorphism $\varphi:E\rightarrow E'$ such that the following diagram commutes \begin{equation*}\require{AMScd} \begin{CD} 1 @>>> A @>>> E @>>>G @>>> 1 \\ @. @| @VV\varphi V @| \\ 1 @>>> A @>>> E' @>>> G @>>> 1. \end{CD} \end{equation*} The set of equivalence classes of group extensions is denoted by $\Ext(G,A)$.
Schreier's Theorem gives us a one-to-one correspondence between $\Ext(G,A)$ and $H^{2}(G,Z(A))$. But I can't find a direct proof for this theorem. In other word, I want to understand how a given extension induces a factor pair $(\alpha,\varepsilon)$ where the $2$-cocycle $\varepsilon$ takes values in the center $Z(A)$ of $A$.
Any help would be appreciated.