Refactoring slugifier component