Replacing named modules with anonymous ones