Move QModelingElement and QModelingObject removal to base classes

Change-Id: I48fbd0e1c63e5627137b00a26fcbe7ea82eaa78f
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>