move some code to dedicated functions.
Created attachment 397566 [details] Patch
Comment on attachment 397566 [details] Patch Thanks Sam!
Committed r260703: <https://trac.webkit.org/changeset/260703> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397566 [details].
<rdar://problem/62371376>