Refactoring yandex-sysmon/elog#11