Refactored IOS decorators to use inheritance.