Separated Environment build logic for WindowsPhone provider.