Remove unused locals and reinits.