Pātuhitia tēnei: Origins of legislative sovereignty and the legislative state