Eliminate duplicate testml runner code.