Refactor epp_head to helper