Refactor Priam client API to use more specific types.