Removing polymorphic associton from phtos