extract parseDataElement() closure and add to plugin interface