Massive simplification to the Lab colorspace maths
(cherry picked from commit 4f2fb03aac1f465e6b05b5b9dd662a1e571e5f66)