[COOK-3922] Refactor to not use WebPI.

:construction: