Reimplement ground selector as a more generic enum selector.