Can we set naming series based on Item group or any customer field In place of Item code or Item Naming in stock setting

Hello all,
Can we set default naming series based on Item group in stock setting in place of Item code or Item Naming, without script.
Plz explain step by step

Hi,

We abbreviated our Item Group using a custom script on Items.

    frappe.ui.form.on("Item", {
    validate: function(frm) {
if(frm.doc.item_group== "Services - LSA"){frm.doc.naming_series = "LS-";}
if(frm.doc.item_group== "Services - FFA"){frm.doc.naming_series = "FS-";}
if(frm.doc.item_group== "Services - Liferafts"){frm.doc.naming_series = "RS-";}
if(frm.doc.item_group== "Services - Automation"){frm.doc.naming_series = "AS-";}
      }
});

And Item Code naming series looks something like this.

MISC-.###
LS-.###
FS-.###
RS-.###
AS-.###
LP-.###
FP-.###
RP-.###
AP-.###

It works fine for our use case. If Item Group is regularly added, then this would be tedious solutions.