Refactor user lookup server method.