Moved the experience calculator to a helper.