Reuse helper function for string literal pattern
Reuse helper function for string literal pattern

Summary:
Instead of repeating this gnarly pattern, just reuse the existing helper
function.

Reviewed By: panagosg7

Differential Revision: D26756245

fbshipit-source-id: cc9941fe64224b01fbb8c09f47cfa6713efb069b

facebook/flow,facebook/flow,mroch/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow,mroch/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow,mroch/flow,facebook/flow