Refining modules structure.