Yeah, I knew a guy who helped develop a companies software, maneuvered himself into the key position of handling it, spent a year with it and no-one else in the company could do his job, so he quit, became a "consultant" and they hired him to do exactly the same thing, but at twice the pay.
I have to admit, I both admire and despise him for that maneuvering.