in reply to Base20 Blues

Put duplicated code into method(s). You can also do this recursively, if you prefer.

Peter (Guo) Pei