Changed purely deterministic normalizer to static methods so they can easily be reused by extensions.