Make sure abstract models are not inherited twice