refactor parse_client_queued from insane to sensible, removing 3 lots of duplicated code