Split tree/user preference getter/setter into two functions