split up "breakdownScript" function

Yay readability! I also renamed it to “minifyDirectToOutput”, but since
it’s a protected function I don’t think anyone will notice.