Move parsing code from Sunshine to Core.