charRef refactoring