If possible, add optional parameter for syntax:
vehicle removeMagazineTurret [magazineName, turretPath, removeLoaded]
where removeLoaded is boolean-default TRUE so it doesn´t affect current user scripts.
Using FALSE should keep loaded magazine and remove magazine from cargo instead if available.