Clean up some brew repository logic