Put duplicated code into method(s). You can also do this recursively, if you prefer.
In reply to Re: Base20 Blues by PeterPeiGuo in thread Base20 Blues by JimDuyer