Refactor functional scales.