It's in a separate script because so much of the script is system dependent - filesystem locations, github protocol.  good to be able to edit it without having to restart the CMS.  We also run it by hand or from external scripts occasionally.