org settings: Refactor the discard changes function.
org settings: Refactor the discard changes function.

This extract the logic of resetting the value of a single property element
at a time so that we can reuse this for real-time-syncing.

rishig/zulip,andersk/zulip,synicalsyntax/zulip,kou/zulip,tommyip/zulip,andersk/zulip,rishig/zulip,synicalsyntax/zulip,eeshangarg/zulip,tommyip/zulip,showell/zulip,zulip/zulip,timabbott/zulip,showell/zulip,tommyip/zulip,eeshangarg/zulip,jackrzhang/zulip,timabbott/zulip,rishig/zulip,jackrzhang/zulip,kou/zulip,hackerkid/zulip,dhcrzf/zulip,shubhamdhama/zulip,rishig/zulip,brainwane/zulip,rht/zulip,dhcrzf/zulip,brainwane/zulip,hackerkid/zulip,hackerkid/zulip,kou/zulip,eeshangarg/zulip,hackerkid/zulip,hackerkid/zulip,rht/zulip,andersk/zulip,punchagan/zulip,dhcrzf/zulip,shubhamdhama/zulip,jackrzhang/zulip,timabbott/zulip,shubhamdhama/zulip,showell/zulip,punchagan/zulip,shubhamdhama/zulip,eeshangarg/zulip,jackrzhang/zulip,shubhamdhama/zulip,zulip/zulip,punchagan/zulip,zulip/zulip,timabbott/zulip,brainwane/zulip,shubhamdhama/zulip,shubhamdhama/zulip,dhcrzf/zulip,showell/zulip,zulip/zulip,jackrzhang/zulip,dhcrzf/zulip,timabbott/zulip,hackerkid/zulip,zulip/zulip,punchagan/zulip,punchagan/zulip,rishig/zulip,kou/zulip,synicalsyntax/zulip,kou/zulip,rht/zulip,andersk/zulip,tommyip/zulip,rht/zulip,rishig/zulip,punchagan/zulip,dhcrzf/zulip,kou/zulip,synicalsyntax/zulip,brainwane/zulip,andersk/zulip,rishig/zulip,eeshangarg/zulip,punchagan/zulip,rht/zulip,synicalsyntax/zulip,timabbott/zulip,showell/zulip,tommyip/zulip,zulip/zulip,rht/zulip,timabbott/zulip,rht/zulip,tommyip/zulip,hackerkid/zulip,brainwane/zulip,jackrzhang/zulip,showell/zulip,jackrzhang/zulip,synicalsyntax/zulip,brainwane/zulip,tommyip/zulip,eeshangarg/zulip,zulip/zulip,kou/zulip,dhcrzf/zulip,brainwane/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,andersk/zulip,showell/zulip