If a previously existing provision is restated and continued in this part, or in Title 2 (commencing with Section 12001) of Part 4, or in any other provision of the Deadly Weapons Recodification Act of 2010, a conviction under that previously existing provision shall, unless a contrary intent appears, be treated as a prior conviction under the restatement and continuation of that provision.