Remove untested legacy code.