Refactor metric mapping ro support ORM / Mongodb ODM

Bug fix: [no]
Feature addition: [no]
Backwards compatibility break: [yes]
Unit test passes: [yes]
Behat scenarios passes: [yes]
Checkstyle issues: [no]
ChangeLog updated: [yes]
Fixes the following jira: PIM-1616