Started refactoring sites scripts into modules.