Leader of Australia’s most populous state quits