Remove object scope variables in model scripts