Tidy up scala in Social refferer agent