...G...... [ZBXNEXT-497] moved part of parsing code to separate function