Clean up list assignment

Summary: Deduplicate two instances of list assignment implementation.

Reviewed By: @billf

Differential Revision: D1406278