Code duplication noted, but that was likely done for performance reasons to avoid additional function calls. There are many instances of this throughout UnitOfWork.

I'm going to take a stab at moving the function over to UnitOfWork, and will cross-reference this PR when it's ready.