How do I state a theorem in the first section of my paper with the optional argument, and then restate the theorem in subsequent sections without the optional argument? (The optional argument will contain the number of the section where the proof of the theorem is presented. Prior to the proof I want to restate the theorem without the section number.)
\documentclass{article}
\usepackage{thmtools}
\usepackage{thm-restate}
\newtheorem{thm}{Theorem}
\begin{document}
\section{Introduction}
\begin{restatable}[\S\ref{SectionNumber}]{thm}{TheoremName}
theorem contents
\end{restatable}
\section{Some Section}
\label{SectionNumber}
\TheoremName*
\end{document}
This code outputs the following :
1 Introduction
Theorem 1 (§2) theorem contents
2 Some Section
Theorem 1 (§2) theorem contents
I want “(§2)” to disappear when I restate the theorem.
Note that there is a similar question [Restating a Theorem Without the Optional Argument] with "subsequent sections" replaced by "appendix", but I don't see how to translate the answer to solve my question.

\begin{restatable}[foo]{thm}{thm} ... \end{restatable}should feature the optional argument, but every\thm*call should omit the optional argument? – Dai Bowen Jun 13 '18 at 10:08