Used OwningPtr to clean up some memory management in Consumed.cpp.