Move miscellaneous module-related structures into a separate module.
Create random module.