s3-ads: Remove unused wrapper and make function static