Removes unused code and tests.