Cleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()

Defined a lambda function for code readability

Change-Id: Ic538b16d4643e064b222b76af80478161fd3e318
Merge "Cleans up bulk_body generation in quantum.api.v2.base.prepare_request_body()"