Moved DefineTableForModel to global