Delete the legacy code