Move static method to non static method in `ApfTestHelpers`

This changes is for follow-up CL to support different apfjni version in the constructor.

Bug: 391118179
Test: atest NetworkStackTests
Change-Id: Idb7140f7f3f6fe9b40571db5e5cbceab03dde8cc
5 files changed