Factor out all the lint code to the lint module