Refactored how metric_collector_name is set into a private method

Signed off by: Daniel Paulino <danpaulalves@gmail.com>
Signed off by: Renan Fichberg <rfichberg@gmail.com>