refactoring platform environment global defines into a separate module