Pass in the selection so that people creating features need to less about the d4 internals.