What is the primary purpose of a Quality Assessment and Performance Improvement (QAPI) program in a hospice organization?