I cannot change this feeling: again, the Android developers came up with something new and leave everybody in the dark about how they would think the feature is used.
If your notification code has the same structure every time so you should create a static method and pass all what you want and put the code which check the API Level inside this method.