These three commits reduce redundant code and attempt to consolidate certain behaviors to make the behavior easier to comprehend, including extracting a method with a docstring to encapsulate the behavior of building a search connection.
The changes are intended to perform the exact same functionality as the previous code. It's probably easier to review the PR by reading the commits in order, as they were broken down into three separate refactors.
These three commits reduce redundant code and attempt to consolidate certain behaviors to make the behavior easier to comprehend, including extracting a method with a docstring to encapsulate the behavior of building a search connection.
The changes are intended to perform the exact same functionality as the previous code. It's probably easier to review the PR by reading the commits in order, as they were broken down into three separate refactors.