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