Refactor CETextView