Move enums and remove TableRegistry class