Refactor social sharing