Removes legacy code.