let's break these out onto multiple lines. Maybe moving them to functions would be nice too, but I don't know how much of a gain we'd get.

It would maybe make the code easier to understand at a broad glance since it would be things like `replace_script_with_whitespace` and so on.