Moved the HasChanges functionality to the AccessRepository.