Put the Platform fix in a helper method