This would take some efforts. We should not try finishing it in a big update. But rather clean part by part.
Because changing the codes may causing bugs, we need to do testing on them. However, we haven't built a comprehensive regression test pool yet, this cleaning up might be more suitable after we have some regression test.
I assign this to all of the current team members. You can clean up your parts when convenient and mention this issue in the PR. But don't close this issue until it is generally resolved for the whole project.
We should cleaning up the hardcoded parameters.