Add helper for making simple selector.
Merge pull request #2526 from erictune/addhelper

Add selector making helper
Remove never-needed return value.

Make some types private.