Remove 'synthesis translate_' pragmas and replace with preprocessor checks.