For my use case I have four fields that need to be cleared conditionally under different circumstances. I could build a workflow but it would be monstrously complex. My script at least allows me to unit test the business logic, and be sure that every permutation is covered, since there are quite a few.