Works the same way as memory pressure notifications. Code is refactored to work on enum arrays to reduce duplication.