Replace dunder method with better alternative.