Code Modernization pass