Factored the handling of the editingValue in a method