Refactoring Script: abstract term parsing and evaluation.