Generic normalize method.