First attempt at unifying code for categories and budgets, which are basically the same thing.