Refactor: create EntryHighlighter class to move code out of ReplFragment