Retire apply_scale_factor() and scale.h