KPATCH: create abstraction for MD parts

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>