Refactoring color scale code to make distinction between color maps and color scales more clear.