Replace expression with constant in get/set