The smaller of the two containers has a capacity of 150 gallons. When it is $\frac{4}{5}$ full, its contents are emptied into a larger container, filling exactly $\frac{2}{3}$ of it. What is the capacity, in gallons of the larger container?