Move where the notice types are set so it is more accessible to all functions.