Refactor set_stat and mod_stat functions to allow future removal of individual stat set/mod functions.