Update refactor_csp.pl