Refactor record updating to keep it in one place