This is the only method to remove store credit from an account without a real transaction
Add this to the cart, add the customer account to the sale, make the "price" the amount you want to reduce the credit by, select store credit as form of payment- and do the sale