Deprecate the usage of a function as both getter and setter