Code cleanup of the compiler code for translating directives