Remove unnecessary modules