refactor: replace inline model definitions with ModelFactory and remove unused imports ef4db28 Michael Hu commited on Sep 29