Eliminate flatten from imports.