Linting and removing of unnecessary modules