Refactoring social buttons

Removed duplication with a partial of share buttons.