The slug routine could use the item name, so we move this before it to ensure that the item name is sanitized first.