[erl-frontend] Extract code for adding dynamic type in Erlang Pulse models
[erl-frontend] Extract code for adding dynamic type in Erlang Pulse models

Summary: Some refactor to extract repeated code.

Reviewed By: jvillard

Differential Revision: D30879915

fbshipit-source-id: 0688a0dbd

jvillard/infer,facebook/infer,jvillard/infer,facebook/infer,facebook/infer,jvillard/infer,jvillard/infer,facebook/infer,jvillard/infer,jvillard/infer,facebook/infer,facebook/infer,jvillard/infer,facebook/infer