Yeah, just a refactor. We do use something similar in a couple of other places in the codebase. But not enough to abstract out just yet, IMO.