Remove legacy upgrade migrator in 2.0
Extract Model module to a separate file.