It deals with platform types only and is currently violating layering.
Created attachment 249575 [details] patch
Comment on attachment 249575 [details] patch r=me
https://trac.webkit.org/r182064