Removing Derailleur Hanger from Devinci Spartan
Welcome back. Sweet ride and I hope to read more about Devinci and their bikes. Leading a sheltered life and really have only heard of the bikes in passing. In the interest of an answer for you, a Google search of "2018 c Spartan," lead me to the company's website and then to the  Technical Manual.



As you can see on page 1 at the rear axle schematic, you will indeed remove that nut to release the split pivot derailleur hangar. They term the rear axle assembly, "Pivot Kit Shaft," and the right side has about 5 pieces, counting the bolt, bearing, axle and dropout insert. The hangar is the other piece. Included in the document are torque values for every connection. These should be closely adhered to along with good threaded fastener techniques (greasing threads, Loctite where indicated, clean surfaces, etc). This is especially so for carbon frames. The schematic helps immensely, making more words superfluous.  Good riding!