If you’re writing that much boilerplate as part of your day to day work, I daresay you’re Doing Coding Wrong. (Virtue number one of programming: laziness.
https://thethreevirtues.com)
Any drudgework you repeat two or three times should be encapsulated or scripted away, deterministically.