Cleanup the selected category/transaction_type logic