Refactor: simplify decorator
Refactor: simplify decorator

(cherry picked from commit 54e74fa32bf40cc85f9637a97459f0f6e2051e20)

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq