Move MG-specific code out of dmplex.pyx