Added refactor sexp to comment

Pulled out a handy sexp refactoring function