``openAndSelect`` matches line 176. I think you intended to refactor this into a higher scope and reuse it, right?