Maybe grab these from the S3Config as well? Seems like that might point to making at least the masquerade host a top-level property, but just having that be configurable would be a big win I think.