Refactored meter ns

- changed factory functions to protocol and records