Rename 'slug' to 'sluggify' and clean up code