mine: extracted mine.get runner to a different python module for reuse

saltstack/salt#12070