Refactor extractDataStructure method: simplified it and moved it outside the RoxxorEditorJSONWidget cause it does not use any self variable.