Refactor code duplication in wrapping Operators with Variables.