'Splits any random role params off from the role spec and store
them in a dictionary of params for parsing later'

def _split_role_params(self, ds):

    role_def = dict()
    role_params = dict()
    base_attribute_names = frozenset(self._valid_attrs.keys())
    for (key, value) in iteritems(ds):
        if ((key not in base_attribute_names) or (key in ('connection', 'port', 'remote_user'))):
            if (key in ('connection', 'port', 'remote_user')):
                display.deprecated(((("Using    '%s'    as    a    role    param    has    been    deprecated.    " % key) + 'In    the    future,    these    values    should    be    entered    in    the    `vars:`    ') + "section    for    roles,    but    for    now    we'll    store    it    as    both    a    param    and    an    attribute."), version='2.7')
                role_def[key] = value
            role_params[key] = value
        else:
            role_def[key] = value
    return (role_def, role_params)
