Refactoring method for overriding setter.