Extract repeating code from _init_properties(self) to _new_property(self,key).