..F....... [ZBX-8118] Simplify and fix code to conform with guidelines.