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