Move helpers to gds-api-adapters

They were generic and reusable.