Removes unneccessary modules from data script.