[#73125784] refactored contact#linked_to

- specs show the behaviour is still the same
- this implementation should be much fuster. waiting
  for appsignal reports to confirm.
Configurations for staging deploy on heroku