refactor maxStatesPerUrlReacher