Refactored the run() method on StaticSiteRewriteLinksTask. It was too
long.