My suggestion would be to move `find_pages` inline into `run`, as it's only used once, and its only job is to set up `source_links`, which can then be moved inside `run` as a local variable, instead of being used as a global variable.