remove all legacy files
remove Realm dependency