convert module usage to inline expressions