Check the limit argument provided to the API in a central place