somehow more robust objectbox redefinition