Code streamlining, unifying serialization-fail retry handling