Most of this branch is identical. Please move the `return adapter.adapt_many(adapter.ServiceAdapter,)` out of the branch, and only include the selections of the sequence in the branch (`if namespace self.... else self.collection`).