Removing of useless sections in modules