Cleans up parsing of limits.