factors @cturner's MySQL explain fix into a module