Remove cycles in module constructors.