At least for the contrived example from the article, the solution isn't to break up the code, but to use denser code. Use a regex.
Does anybody really think that e.g. sregex[1] is better than just learning and using the regex language directly? Because that's where this kind of thinking leads.
[1]: https://github.com/jwiegley/emacs-release/blob/master/lisp/o...