Correct code duplication in the SNMP module