Not knowing your currently technical niche, industry or passions, this question implies that you think about yourself as a commodity.
Rather, think of yourself as a problem-solver, who has many tools at his/her disposal, (a major) one being writing code.
This allows you to fit yourself into many different molds, rather than just a fixed position as a programmer, much like a factory worker at a manufacturer.
I personally enjoy thinking of myself as a consultant, as it allows me to focus on figuring out solutions to problems I encounter, rather than the tools I have at my toolbox. This is not always natural or easy, but a continued, concerted effort at developing this mindset has paid off for me.