Global option module generation macro

Use the global option module generation macro to create global option modules.