Refactoring teng row