Refactoring: pulled out common code for reuse
Do not update records when field value is unchanged. Issue: #457