Refactor getter/setter to support compile.