Removes unused mock.