Lemma (removing eps and unit productions from context-free grammar)

Let $G = (Σ, N, P, S)$ be a context-free grammar.

There exists a context-free grammar $\mathring G = (Σ, N, \mathring P, S)$ where $\mathring P$ has no $ε$ production (i.e. rules of the form $A\to ε$) and unit production (i.e. rules of the form $A\to B$) and $\mathcal{L}(\mathring G) = \mathcal{L}(G) \setminus \set{ε}$.

Proof