Change modules hierarchy