Split scripts into separate package files, declare dependencies in these package files.