remove unused modules from models