Refactored precipitation reporting code.