Let $M$ be a monoid with unit element $e$. One may define its maximal subgroup to be $$G_M=\left\{a\in M\mid\exists b\in M:ab=ba=e\right\}$$
I wanted to know whether there is a monoid $M'$ such that $M\cong G_M\times M'$. If it's false in general, does it hold for commutative monoids?
Thanks :)