What is the appropriate pattern to use for this refactoring situation?
Problem: I am looking at an issue in an open-source project (rhino), which is a JavaScript engi