This refactoring is good, but the method would be better if it were in the `nil_adapter_test` file, close to the thing it's testing.