Migrate DischargeCommand to config