Refactor CETextView a bit