Moved get_key_arg() and get_group_arg() to a separate mixin.

Moved the responsibility of the key and group argument getters to a new mixin (LookupMixin).