refactor levels config