Add missing namespace to uses of discard_changes