I got the exact opposite advice decades ago if you want to remain technical. If you start becoming the company expert on their business processes as a programmer, time to move to a new company.
That served me very well and I remained a programmer for my whole career.
I think this is very good advice for many programmers. I think a lot of programmers become stagnant in sone company because if the phenomena you describe.
That served me very well and I remained a programmer for my whole career.