Merge Device._get_client() with Device._set_client()

We don't need another method just for one return statement.
Rename Device._set_client() to Device._create_client().
Reorder code