It is well-known that if we pass from a UFD to a new ring where we have factored one of the primes, it does not need to stay a UFD. The classic example is passing from $\mathbb{Z}$ to $\mathbb{Z}[\sqrt{-5}]$, where $-5$ has a new (repeated) factor.
My current research student, Caleb Dastrup, recently pointed out to me that we do not lose the UFD property if we adjoin new factors freely. In other words, if $R$ is a UDF and if $p\in R$ is prime, then the new ring $S:=R[s,s'\, :\, ss'=p]$ is a UFD. Additionally, all the primes of $R$ not associate to $p$ are still prime, and $s,s'$ are both prime, and the units of $S$ are the same as in $R$.
We've developed two different proof strategies. First, one can write elements of $S$ in a reduced form, where they are $R$-linear combinations of powers of $s$ and $s'$ (separately, never jointly). Then some ad hoc computations verify all those claims. Second, one can think of $S$ as the subring $R[s,p/s]$ of $R[s,s^{-1}]$, which is the valuation subring where we give both $s$ and $p$ valuation $1$. Again, some ad hoc work suffices to finish proving the theorem.
I'm wondering if this result already appears in the literature, or follows from some known results.