It's pretty popular problem. I recently got this book "The Positioning Manual for Technical Firm" by Philip Morgan from my friend and it's basically about how to move from generalist to in-demand specialist. The book has exercises how to determine for who and what service you could provide to position yourself as specialist. Maybe you will find this useful.