Document normalize helper function.