refact(share): refactored archtecture for sharing

Isolated sharing logic from message formating logic for simplify future approaches.
refact(test): encapsulated mock bet method