Split imports and exports so they can be removed