A factory uses 1/3 of a barrel of raisins in each batch of granola bars. Yesterday, the factory used 2/3 of a barrel of raisins. How many batches of granola bars did the factory make yesterday?