Move the client object creation from case statement to a method.