Swap magic methods and inheritance.