Reduce code duplication in get_change().