Remove unused code and libs