simplify attribute extraction for grouped selector

I think simply reusing `extractAttribute` would be a much simpler and cleaner method. I removed the `selectAttribute` feature and simply used `extractAttribute` when extracting data. If you approve of this pull request and merge it then I can merge it into the master branch.