Refactoring (extract class Select)