There's a trick a lot of contractors/consultants use if they work in the same industry for a while. They create a "platform" (which honestly is just a few libraries of code), and then charge clients more to use their "platform" (which comes with nice-looking sales materials). You still do the same amount of programming, and charge the same for that, but charge extra for use of the "platform".
You sell the client on the fact that they'll save heaps of money using your platform because a lot of code is already written. This isn't actually true, code re-use doesn't save that much money, but it sounds good and they tend to buy it. I've seen it happen over the years again and again and again.
It's a bit tricky but loads of people do it. It used to be cms platforms, now it's social networking platforms or mobile app platforms. Same trick.
It's a little dirty though but one of the only ways to actually "scale" consulting. The other way is to have high-powered sales people, and hire superjunior beginner who do all the work. I think that's even dirtier.