KPATCH: create abstract out MD parts

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