Would it be possible to create the redirectTarget outside of the S3 writer functionality, in `writeEmbed` and `writeEmbedShell`?