This is where we as an industry need to embrace unions and let folks like you mentor and train younger developers.
I actually think it’s overemphasized on the internet, if anything. Staff+ engineers should still edit (I don’t say “write” because “delete” is even better) code. Otherwise what’s all the training for? Getting the senior- engineers up to “mentoring” roles, to train even more senior- engineers, …?
Somewhat unrelated, I'd love to see some kind of code dividend for folks where you keep earning money from code you wrote (that hasn't been rewritten). I think the IP assignment stuff we all have to sign is ridiculous when it creates so much value. We are signing away our right to future profits.