Refactor standard scripts.