Factor out scripts for new repo.