If you look at the scripts being called, you will find that the bulk of the code is in a common sub-script, and the mini-scripts include the sub-script. It's a pretty slick workaround.