Refactoring Cancelling Update Code