'Adjusts play datastructure to cleanup old/legacy items'

def preprocess_data(self, ds):

    assert isinstance(ds, dict), ('while    preprocessing    data    (%s),    ds    should    be    a    dict    but    was    a    %s' % (ds, type(ds)))
    if ('user' in ds):
        if ('remote_user' in ds):
            raise AnsibleParserError(("both    'user'    and    'remote_user'    are    set    for    %s.    The    use    of    'user'    is    deprecated,    and    should    be    removed" % self.get_name()), obj=ds)
        ds['remote_user'] = ds['user']
        del ds['user']
    return super(Play, self).preprocess_data(ds)
