Clean up module dependencies