refactor slugification for settings/new form