Some preprocessor directives refactoring.