Move more methods out of CobraCompletionTextEditorExtension class