A very simple example is the following; suppose I wish to factor out $\pm$ from $\mp 7$, then by my logic $$\mp 7= \color{blue}{\pm \mp} (\mp 7)=\begin{cases}+(-(-7)) & =+7\\ -(+(+7)) & =-7\end{cases}=\pm 7\ne \mp 7\tag{*}$$
So something has gone wrong, as equality is not satisfied in $(*)$. The reason why I wrote $\color{blue}{\pm \mp}$ is because if I factor out a $\pm$ then to compensate I must include a $\mp$ sign (at least I thought).
Just like if I took a factor of $x$ out of $$1+x=x\left(\frac{1}{x}+1\right)$$ so that $$x\times \frac{1}{x}=1$$
But, this same logic does not seem to apply to $(*)$.
Clearly, I am missing something very simple, but right now I can't understand what I'm doing wrong. Could someone please explain how to factor out $\pm$ while maintaining equality?
Note that
$$\color{blue}{\pm1\cdot \mp1} =-1 \implies \color{blue}{\pm \mp} (\pm 7)=\mp7$$