Refactor transfer API to reduce dependencies on MyTardis model classes