Refactoring ext/snmp