Refactor perch scripts into file.