Extract definition of client thread to a sub class