Antag att riksdagen skulle vilja ersätta monarki med republik. Hur skulle en sådan lagstiftning gå till?