Extracting S3 signature creation into a function (installS3MethodSignature).