Move UAA runner into shared code