Refactor to a RepositoryHooksClient