Actually "class Medium" can be deleted but I left it there. It migrates successfully without it, which explains why "class Media" worked.