Whenever cotton bought from a factory is removed by the purchaser, his agent or broker from the warehouse in which it is stored to another warehouse for the purpose of reweighing, resampling or examining and the same or any part thereof shall, after such reweighing, resampling or examining, be rejected, the purchaser, his agent or broker must replace the cotton so rejected in the warehouse from which it was removed in as good order as when it was removed therefrom and pay all the costs attending such removal and replacing and for all samples drawn.