Refactored StaticPlatfromFactory methods into a single one.