Update theme handling to D8.