Move the generateSlug() function from the Tool.php model to the BaseHelper.php