Removing redundant requires and fixing another use of Uploadmodel.cast