Moved some specialized procedures from utils to client.pull.