Why not set `_client` here to `client.Repository.Hooks` here and eliminate some duplication below?