Extract building connections metric name into a method

Reduce duplicate code across all HTTP connection factories.
Merge pull request #825 from arteam/extract_metric_name

Extract building connections metric name into a method