Remove dead variable, const-ref-ize an APInt.