mmt/nvidia: factor out mthd call injection code