core: split measurement class functionality

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>