telemetry: remove redundant code