Refactor debug statement and remove dead argument. NFC.