Use Struct class factory in SocialShares::Base class