Extract client to a package.