Refactor parseInt to satisfy linting