Major rewrite of the inheritance logic.

Instead of removing the related fields from the abstract tenant model
we insert a tenant specific abstract base with replaced related fields.