...G...... [ZBX-8455] move optional variable to the block it's used