Refactored operator evaluation so that all ops share one method.