[12633] Reorder and unify the config's stat modifier handling
[12634] Fix some unused parameter warnings
[12635] Fix tiny bug introduced in [8390] in an unused function
[12636] Fix another warning and simplify code a little