Replace modules by profiles