drm: mm: extract node insert helper functions